home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
saverenderedas_ilbm.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
1KB
|
47 lines
/*
* $VER: SaveRenderedAs_ILBM.ifx.pre 2.5 (11.04.96)
* Copyright © 1992-1996 Nova Design, Inc.
* Written by Thomas Krehbiel
*
* Save rendered image as ILBM.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
seq = WORD(ARG(1),1)
lastpath = GETCLIP('Autofx_SaveRenderAsILBM_Path'||seq)
lastext = GETCLIP('Autofx_SaveRenderAsILBM_Ext'||seq)
IF lastext = "" & lastpath = "" THEN lastext = ".iff"
IF lastpath = "" THEN DO
GetPrefs RendPath
lastpath = result
END
Gadget.1 = 'STRING 120 5 200 14 "Output Path:" "'lastpath'"'
Gadget.2 = 'FILEREQ 321 5 20 14 "Output Path:" "'lastpath'" AT=1 DIRONLY'
Gadget.3 = 'STRING 120 20 200 14 "New Extension:" "'lastext'"'
Gadget.4 = 'TEXT 120 36 1 1 "(** = current frame number)" 1'
Gadget.5 = 'END'
NewComplexRequest '"Save Rendered Image As ILBM"' Gadget 360 53
IF rc ~= 0 THEN EXIT rc
lastpath = result.1
lastext = result.3
CALL SETCLIP('Autofx_SaveRenderAsILBM_Path'||seq, lastpath)
CALL SETCLIP('Autofx_SaveRenderAsILBM_Ext'||seq, lastext)
EXIT